import java.util.Random;

public class Java008 {
    public static void main(String[] args){
        int [] arr={1,2,3,4,5};
        int flag;
        Random random = new Random();
        for(int i=0;i<arr.length;i++){
            int j = random.nextInt(5);
            flag = arr[i];
            arr[i]=arr[j];
            arr[j]=flag;
        }
        System.out.println(arr[0]);
        System.out.println(arr[1]);
        System.out.println(arr[2]);
        System.out.println(arr[3]);
        System.out.println(arr[4]);

    }
}
// int [] arr={1,2,3,4,5};  要求打乱顺序